package com.ostrich.cloud.ostrichManagerWeb.app.controller;

import com.ostrich.cloud.common.result.Result;
import com.ostrich.cloud.ostrichManagerWeb.client.UserManagerClient;
import com.ostrich.cloud.ostrichUserService.client.CustomerMangerClient;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class UserManagerApiImp implements UserManagerClient {

    @Resource
    private CustomerMangerClient customerMangerClient;

    @Override
    public Result getAllUser(Integer current, Integer size, String status) {
        Result allCusMessage = customerMangerClient.getAllCusMessage(current, size, status);
        return allCusMessage;
    }

    @Override
    public Result updateUser(Integer parentId, String status) {
        Result result = customerMangerClient.upCusStatus(parentId, status);
        return result;
    }
}
